package top.frsf.card;

import top.frsf.GamePanel;
import top.frsf.utils.GameState;

import java.awt.*;
import java.util.ArrayList;

/**
 * @BelongsProject: MiniPZ
 * @BelongsPackage: top.frsf.card
 * @Author: FRSF
 * @CreateTime: 2022-09-08  19:47
 * @Description: 卡片启动类
 * @Version: 1.0
 */
public class CardStart {

    public static final String PREFIX = "src/main/resources/cards/";

    // 豌豆卡片
    public final PeaseCard peaseCard = new PeaseCard(
            PREFIX + "pease0.png", PREFIX + "pease1.png", PREFIX + "pease2.png",
            276, 42, 52, 72, 5000, 100);


    // 卡片集合
    public final ArrayList<CardObject> cardList = new ArrayList<>();

    {
        cardList.add(peaseCard);
    }


    public void paintCard(Graphics g) {
        // 游戏开始
        if (GamePanel.stage == GameState.RUNNING) {
            peaseCard.paintSelf(g);
        }
    }
}
